package com.aiyan.edu.service.learning.client;

import com.aiyan.edu.framework.client.AiyanServices;
import com.aiyan.edu.framework.domain.course.CoursePlanMediaPub;
import com.aiyan.edu.framework.model.response.CommonResponseResult;
import com.aiyan.edu.service.learning.client.fallback.CourseEsSearchClientFallback;
import com.aiyan.edu.service.learning.client.fallback.HelloSearchClientFallback;
import com.aiyan.edu.service.learning.client.fallback.HelloSearchClientFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author: zqzhou
 * @create: 2019/11/20 23:27
 **/
@Component
@FeignClient(value = "aiyanedu-service-search", fallbackFactory = HelloSearchClientFallbackFactory.class)
public interface HelloSearchClient {

    @GetMapping("/search/data/{id}")
    public String data(@PathVariable("id") String id);
}
